#include "packet_capture.h"
#include <iostream>

int main() {
    packet_capture pc("any", "xxx.pcap");
    pc.start();// 启动抓包

    // 等待输入stop停止
    std::cout << "Press Enter to stop capturing..." << std::endl;
    std::cin.get();  // Wait for the user to press Enter

    pc.stop(); // 停止抓包

    return 0;
}

